package com.example.android.apis;


import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class History extends TabActivity 
{
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        final TabHost tabHost = getTabHost();

	        tabHost.addTab(tabHost.newTabSpec("tab1")
	                .setIndicator("Gallery")
	                .setContent(new Intent(this, ImageSwitcher1.class)));

	        tabHost.addTab(tabHost.newTabSpec("tab2")
	                .setIndicator("t")
	                .setContent(new Intent(this, F6Activity.class)));
	        
	        // This tab sets the intent flag so that it is recreated each time
	        // the tab is clicked.
	        
//	        tabHost.addTab(tabHost.newTabSpec("tab3")
//	                .setIndicator("destroy")
//	                .setContent(new Intent(this, Controls2.class)
//	                        .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
	 }
}
